package com.xzc.shopping.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xzc.shopping.model.vo.ProductVO;
import com.xzc.shopping.model.domain.Product;

import java.util.List;

/**
* @author Administrator
* @description 针对表【product】的数据库操作Service
* @createDate 2025-02-26 08:32:55
*/
public interface ProductService extends IService<Product> {

    boolean decrementThumbCount(Integer productId);
    boolean incrementThumbCount(Integer productId);
    ProductVO getProductDetail(Integer productId, Integer userId);
    int getThumbCount(Integer productId);

    List<Product> getHotProductsFromDB();

}
